// dlg.txt

//mark_quest_dest(zone,x,y,layer,quest);

begintalkscript;

variables;


// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = gf(38,17) == 0;
	question = "Name";
	text1 = "Rentar-Ihrno looks up from the control panel at you. Through the smoke, you can see a long line of vahnatai guards behind her, ready for battle. The control panel is between you and her.";
	text2 = "She points at you. _You are here at last. You have done much harm to my plans, risked everything, and only to prevent justice._";
	code =
		set_attitude(30002,10);
		set_attitude(30020,10);
		sf(38,17,1);
	break;
	
begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_Did you order Bon-Ihrno killed?_";
	text1 = "_I did. I should have done it much earlier. He made us all weak about humans. Only I saw, even during the wars, that it must come to this._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_What is the justice in what you have done?_";
	text1 = "_The Empire stole and tortured the Crystal Souls. Now you fight alongside them. Humans helped humans, of course. And all this, of course, is after you humans took advantage of our rest to steal our land._";
	text2 = "_Yet, you still don't understand. I could have offered you a glorious future, if only you let me do my work._";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "_You admit you caused the monster plagues?_";
	text1 = "_Of course. The Empire had to pay for their crimes. Your mistake was siding with them. I will make sure Avernum pays dearly for this, and for stealing our lands in the first place._";
	text2 = "_Yet, you still don't understand. I could have offered you a glorious future, if only you let me do my work._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "_I've come too far to have the patience for this._ (Attack.)";
	text1 = "Rentar-Ihrno begins to prepare a spell. Behind her, the vahnatai warriors ready their weapons. They are prepared to die for their lady.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_And what is this glorious future?_";
	text1 = "_I will ravage the surface. The Empire will fall into anarchy. A few million deaths will be adequate revenge. The humans that survive will be weak, hungry, and desperate._";
	text2 = "_Then Avernum must leave the underworld. You can have the wastes above. I will leave it possible for you to survive there._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Avernum has to leave the underworld?_";
	text1 = "_Of course. Don't you know why the vahnatai sleep for centuries? The caves can only support so much life. Even with your magic, Avernum can't survive and grow forever. It is not a place for humans or nephilim._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_And if I don't like your plan?_";
	text1 = "_You don't have a choice. It is not just for justice, but for the survival of the vahnatai. It is unavoidable._";
	text2 = "_There can never be true peace between us, while we all struggle to survive in the caves._";

begintalknode;
	state = 12;
	nextstate = 13;
	condition = 1;
	question = "_There is justice in what you plan._";
	text1 = "_Yes, and the offer is still open. Not to you. You must pay the blood price for the vahnatai you have slain. You will die._";
	text2 = "_Then, someday, after the humans have been driven to the burning surface, we can talk of peace._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_That's an interesting control panel you have there._";
	text1 = "_Yes. You will not survive to reach it._";

begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_There can be no peace between vahnatai and humans?_";
	text1 = "_Not as long as you live on our stolen lands. Not as long as you hunt us and prevent our revenge._";
	text2 = "_Enough. I have too much to do, too many to mourn. Guards, destroy the intruder._";
	action = END_TALK;
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_What if I leave here and allow you to destroy Valorim?_";
	text1 = "_You will not leave. It is not in your nature. Even if it was, I would not let you. You must die for what you have done._";
	text2 = "_Enough. I have too much to do, too many to mourn. Guards, destroy the intruder._";
	action = END_TALK;
	
begintalknode;
	state = 13;
	nextstate = -1;
	condition = 1;
	question = "_This is your last chance. Submit, or die here._";
	text1 = "_My power is greater than yours. You cannot slay me. You won't even scratch me. Your bluster is amusing, though._";
	text2 = "_Enough. I have too much to do, too many to mourn. Guards, destroy the intruder._";
	action = END_TALK;

	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				